package com.hele.sts.pub;

import java.util.HashMap;
import java.util.Map;

public class Constants {
	
	// 用户状态
	public static final String USER_STATUS_LEISURE = "1";
	public static final String USER_STATUS_USED = "2";
	public static final String USER_STATUS_REVOKE = "3";
	public static final String USER_STATUS_UNKNOWN = "";
	// 用户查询权限
	public static final String USER_CXQX_JM = "00000001";
	public static final String USER_CXQX_GJ = "00000002";
	public static final String USER_CXQX_NY = "00000003";
	public static final String USER_CXQX_WY = "00000004";
	//用户身份
	public static final String YHSF_QY = "10";
	public static final String YHSF_LS = "20";
	public static final String YHSF_GJF = "30";
	public static final String YHSF_ZRR = "40";
	public static final String YHSF_QT = "50";
	//查询目的
	public static final String CXMD_DACX = "0";
	public static final String CXMD_XSYJ = "1";
	public static final String CXMD_JJJS = "2";
	public static final String CXMD_XCJY = "3";
	public static final String CXMD_GZKC = "4";
	public static final String CXMD_QT = "5";
	//打印权限
	
	//是否检查图片错误
	public static final String TIF_ERRCHECK_CHECK="1";
	public static final String TIF_ERRCHECK_NOCHECK="0";
	
	//是否检查图片权限
	public static final String TIF_PAGECHECK_CHECK="1";
	
	//档案目录是否显示登记机关
	public static final String DIR_DJJGSHOW_SHOW="1";
	
	public static Map<String, String> cxqxMap = new HashMap<String, String>();
	static {
		cxqxMap.put(USER_CXQX_JM, "内部机密");
		cxqxMap.put(USER_CXQX_NY, "内部一般");
		cxqxMap.put(USER_CXQX_GJ, "公检法级");
		cxqxMap.put(USER_CXQX_WY, "外部一般");
	}
	
	public static Map<String, String> userStatusMap = new HashMap<String, String>();
	static {
		userStatusMap.put(USER_STATUS_LEISURE, "空闲");
		userStatusMap.put(USER_STATUS_USED, "使用");
		userStatusMap.put(USER_STATUS_REVOKE, "注销");
		userStatusMap.put(USER_STATUS_UNKNOWN, "未登记");
	}
	
	public static Map<String, String> yhsfMap = new HashMap<String, String>();
	static {
		yhsfMap.put(YHSF_QY, "企业");
		yhsfMap.put(YHSF_LS, "律师");
		yhsfMap.put(YHSF_GJF, "公检法");
		yhsfMap.put(YHSF_ZRR, "自然人");
		yhsfMap.put(YHSF_QT, "其他");
	}
	
	public static Map<String, String> cxmdMap = new HashMap<String, String>();
	static {
		cxmdMap.put(CXMD_DACX, "档案查询");
		cxmdMap.put(CXMD_XSYJ, "学术研究");
		cxmdMap.put(CXMD_JJJS, "经济建设");
		cxmdMap.put(CXMD_XCJY, "宣传教育");
		cxmdMap.put(CXMD_GZKC, "工作考察");
		cxmdMap.put(CXMD_QT, "其他");
	}
	
	public static Map<String, String> errCheckMap = new HashMap<String, String>();
	static {
		errCheckMap.put(TIF_ERRCHECK_CHECK, "检验");
		errCheckMap.put(TIF_ERRCHECK_NOCHECK, "不检验");
	}


	public static final int USER_LOCK_TIMES = 3;
	public static final int USER_VERIFY_TIMES = 10;

	public static final int LOGIN_STATE_NOT_LOGIN = 0;
	public static final int LOGIN_STATE_LOGIN = 1;
	public static final int LOGIN_STATE_LOCKED = 2;

	public static final int LOGIN_LOCKED_TIME = 30;


	public interface DocMoveStatus {

		public static final int MOVED_OUT = 1;
		public static final int MOVED_IN = 2;
	}
	
}
